package com.itheima.bakery.demos.web.service;

import com.itheima.bakery.demos.web.model.OrderDetail;

import java.util.List;
import java.util.Optional;

public interface OrderDetailService {
    List<OrderDetail> findAllOrderDetails();
    Optional<OrderDetail> findOrderDetailById(Integer id);
    OrderDetail saveOrderDetail(OrderDetail orderDetail);
    void deleteOrderDetail(Integer id);
    public OrderDetail createOrderDetail(Integer orderId, Integer productId, Integer quantity);
    OrderDetail updateOrderDetail(OrderDetail orderDetail);

}